package ch.fhnw.qualiscan.core.db.helpers;

import java.text.SimpleDateFormat;
import java.util.Date;

import ch.fhnw.qualiscan.core.db.pojos.SurveyUserRole;

public class dashboardTableArgs {
	private SurveyUserRole sur;
	private String surveyTitle;
	private String surveyRole;
	private String surveyCategory;
	private String surveyCompletionDate;
	private String surveyStage;
	private String surveyUniversity;
	
	public dashboardTableArgs(SurveyUserRole sur, String surveyTitle, String surveyRole, String surveyCategory, Date completionDate, String surveyStage, String surveyUniversity) {
		this.sur = sur;
		this.surveyTitle = surveyTitle;
		this.surveyCategory = surveyCategory;
		this.surveyRole = surveyRole;
		this.surveyStage = surveyStage;
		setSurveyCompletionDate(completionDate);
		this.surveyUniversity = surveyUniversity;
	}
	
	public SurveyUserRole getSur() {
		return sur;
	}
	public void setSur(SurveyUserRole sur) {
		this.sur = sur;
	}
	public String getSurveyTitle() {
		return surveyTitle;
	}
	public void setSurveyTitle(String surveyTitle) {
		this.surveyTitle = surveyTitle;
	}
	public String getSurveyRole() {
		return surveyRole;
	}
	public void setSurveyRole(String surveyRole) {
		this.surveyRole = surveyRole;
	}
	public String getSurveyCategory() {
		return surveyCategory;
	}
	public void setSurveyCategory(String surveyCategory) {
		this.surveyCategory = surveyCategory;
	}
	public String getSurveyCompletionDate() {
		return surveyCompletionDate;
	}
	public void setSurveyCompletionDate(Date completionDate) {
		SimpleDateFormat df = new SimpleDateFormat("dd.MM.yyyy");
		this.surveyCompletionDate = df.format(completionDate);
	}

	public String getSurveyStage() {
		return surveyStage;
	}

	public void setSurveyStage(String surveyStage) {
		this.surveyStage = surveyStage;
	}

	public void setSurveyCompletionDate(String surveyCompletionDate) {
		this.surveyCompletionDate = surveyCompletionDate;
	}

	public String getSurveyUniversity() {
		return surveyUniversity;
	}

	public void setSurveyUniversity(String surveyUniversity) {
		this.surveyUniversity = surveyUniversity;
	}
	
	
	
	
	
}
